package my.headfirstjava.adapter.socket;

/**
 * author: xl
 * time: 2018/11/7 16:32
 * description:
 **/
public class Adpter  implements AmerciaSocket{

    ChinesePlugin chinesePlugin;

    public Adpter(ChinesePlugin chinesePlugin){
        this.chinesePlugin=chinesePlugin;
    }


    @Override
    public void ThreeSocket() {
        System.out.println("将美国插座转换成中国插头能插入的");
        chinesePlugin.twoSocket();
        System.out.println("输出两孔的插孔");

    }

}
